<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
	<div>
		<table>
			<tr>
				<th align="left"><h2>Edit History Item</h2></th>
				<th><a href="<c:url value="/item/history/searchHistory"/>"
					class="bt_green"><span class="bt_green_lft"></span><strong>
							Cancel</strong><span class="bt_green_r"></span> </a></th>
			</tr>
			<tr>
				<td colspan="2">
					<form action="<c:url value="editHistory"/>" method="post">
						<table id="rounded-corner"
							summary="2007 Major IT Companies' Profit">
							<tr>
								<td align="right"><label>Code Item :</label>
								</td>
								<td><input type="hidden" class="input" name="id"
									value="${history.id}" /> <input type="hidden" name="status"
									value="1" /> <input type="hidden" class="input"
									name="History.item" size="40" value="${history.item.id}" /> <input
									type="text" class="input" size="40"
									value="${history.item.code}" disabled="disabled" />
								</td>
							</tr>
							<tr>
								<td align="right"><label>Location :</label>
								</td>
								<td><select name="History.location" id="location">
										<option value="${history.location.id }">Floor
											${history.location.floor.floorName}, Location
											${history.location.position}</option>
										<c:forEach var="locations" items="${locations}"
											varStatus="status">
											<option value="${locations.id }">Floor
												${locations.floor.floorName}, Position ${locations.position}</option>
										</c:forEach>
								</select></td>
							</tr>
							<tr>
								<td align="right"><label>User :</label>
								</td>
								<td><select name="History.user" id="user">
										<option value="${history.user.id }">${history.user.name
											}</option>
										<c:forEach var="users" items="${users}" varStatus="status">
											<option value="${users.id }">${users.name }</option>
										</c:forEach>
								</select></td>
							</tr>
							<tr>
								<td align="right"><input type="submit" value="Save"
									class="button" /></td>
								<td><input type="reset" value="Reset" class="button" /></td>
							</tr>
						</table>
					</form></td>
			</tr>
		</table>
	</div>
</body>
</html>